﻿@model LeadMaster.ViewModels.ViewModelMarketingEnquiries

@{
AjaxOptions ajaxOpts = new AjaxOptions
    {
        HttpMethod = "Post"
    };
}

<style type="text/css">
tr
{
    height: 45px;   
}
</style>

<link href="~/Content/Site.css" rel="stylesheet" type="text/css" />

@using (Ajax.BeginForm("Index", "MarketingEnquiries", null, ajaxOpts, new { @id = "formCreateLead" }))
{
<div class="popupform">
<div class="logo" style="vertical-align: middle; width:700px; text-align: left;">
    <img src="~/Images/lead-generation-specialists.jpg" style="border: none" alt="Dunsmore Marketing Ltd"/>
</div>

<table class="branchtable">
    <tr>
        <td>
            @Html.Label("Interested In")<br />
        </td>
        <td colspan="5">
            @Html.DropDownListFor(m => m.SectorID, new SelectList(Model.Sectors, "SectorID", "Sector"), new { tabindex = 1 })
        </td>
    </tr>
    <tr>
        <td>
            @Html.LabelFor(m => m.SalutationID)<br />
            @Html.ValidationMessageFor(m => m.SalutationID)
        </td>
        <td>
            @Html.DropDownListFor(m => m.SalutationID, new SelectList(Model.Salutations, "SalutationID", "Salutation"), new { tabindex = 2 })
        </td>
        <td>
            @Html.LabelFor(m => m.Forename)<br />
            @Html.ValidationMessageFor(m => m.Forename)
        </td>
        <td>
            @Html.TextBoxFor(m => m.Forename, new { tabindex = 3 })
        </td>
        <td>        
            @Html.LabelFor(m => m.Surname)<br />
            @Html.ValidationMessageFor(m => m.Surname)
        </td>
        <td>
            @Html.TextBoxFor(m => m.Surname, new { tabindex = 4 })
        </td>
    </tr>
    <tr>
        <td>
            @Html.LabelFor(m => m.Company)<br />
            @Html.ValidationMessageFor(m => m.Company)
        </td>
        <td>
            @Html.TextBoxFor(m => m.Company, new { tabindex = 5 })
        </td>
        <td>
            @Html.LabelFor(m => m.CompanyRegistrationNumber)<br />
            @Html.ValidationMessageFor(m => m.CompanyRegistrationNumber)
        </td>
        <td>
            @Html.TextBoxFor(m => m.CompanyRegistrationNumber, new { tabindex = 6 })
        </td>
    </tr>
    <tr>
        <td>
            @Html.LabelFor(m => m.Address1)<br />
            @Html.ValidationMessageFor(m => m.Address1)
        </td>
        <td>
            @Html.TextBoxFor(m => m.Address1, new { tabindex = 7 })
        </td>
        <td>
            @Html.LabelFor(m => m.Address2)<br />
            @Html.ValidationMessageFor(m => m.Address2)
        </td>
        <td>
            @Html.TextBoxFor(m => m.Address2, new { tabindex = 8 })
        </td>
        <td>
            @Html.LabelFor(m => m.District)<br />
            @Html.ValidationMessageFor(m => m.District)
        </td>
        <td>
            @Html.TextBoxFor(m => m.District, new { tabindex = 9 })
        </td>
    </tr>
    <tr>
        <td>
            @Html.LabelFor(m => m.Town)<br />
            @Html.ValidationMessageFor(m => m.Town)
        </td>
        <td>
            @Html.TextBoxFor(m => m.Town, new { tabindex = 10 })
        </td>
        <td>
            @Html.LabelFor(m => m.County)<br />
            @Html.ValidationMessageFor(m => m.County)
        </td>
        <td>
            @Html.TextBoxFor(m => m.County, new { tabindex = 11 })
        </td>
        <td>
            @Html.LabelFor(m => m.Postcode)<br />
            @Html.ValidationMessageFor(m => m.Postcode)
        </td>
        <td>
            @Html.TextBoxFor(m => m.Postcode, new { tabindex = 12 })
        </td>
    </tr>
    <tr>
        <td>    
            @Html.LabelFor(m => m.Telephone)<br />
            @Html.ValidationMessageFor(m => m.Telephone)
        </td>
        <td>
            @Html.TextBoxFor(m => m.Telephone, new { tabindex = 13 })
        </td>
        <td>    
            @Html.LabelFor(m => m.Email)<br />
            @Html.ValidationMessageFor(m => m.Email)
        </td>
        <td colspan="2">
            @Html.TextBoxFor(m => m.Email, new { tabindex = 14 })
        </td>
    </tr>
    <tr>
        <td>
            @Html.LabelFor(m => m.Notes)<br />
            @Html.ValidationMessageFor(m => m.Notes)
        </td>
        <td colspan="5">
            @Html.TextAreaFor(m => m.Notes, new { tabindex = 15, style = "width: 500px; height: 100px;" })
        </td>
    </tr>
</table>
</div>
}


<script type="text/javascript">
    $(document).ready(function () {

        $(function () {
            $(".diaryDatePicker").datepicker({
                changeMonth: true,
                changeYear: true,
                regional: 'en-GB',
                dateFormat: 'dd/mm/yy'
            });
        });

    });
</script>

